﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.VisualBasic;

namespace Lightworks.Api.Controllers
{
    [Controller]
    [Route("/")]
    public class HomeController : Controller
    {
        [HttpGet]
        public IActionResult Index()
        {
            return Redirect("swagger");
        }

        [HttpGet("error")]
        public JsonResult Problem(int code=500,string msg="") 
        {
            return new JsonResult(new { code = code, message=msg });
        }
    }
}
